package models

import (
	"github.com/beego/beego/v2/client/orm"
	_ "github.com/go-sql-driver/mysql"
)

type Users struct {
	Id     int
	CN     string
	Name   string
	Porpel string
	SCode  string
	HType  string
	Email  string
	Img    string
}

func init() {
	orm.RegisterDriver("mysql", orm.DRMySQL)
	orm.RegisterDataBase("default", "mysql", "root:root@tcp(127.0.0.1:3306)/demo")
	orm.RegisterModel(new(Users))
	orm.RunSyncdb("default", false, true)
	orm.Debug = true
}
